{extend name="../../base/view/common/base" /}
<!-- 主体 -->
{block name="body"}
<link href="{__STATIC__}/home/other/formSelects-v4.css" rel="stylesheet" />
<script src="{__STATIC__}/home/other/jquery.min.js"></script>
<script src="{__STATIC__}/home/other/formSelects-v4.min.js"></script>
<style>
    .layui-laydate-header{
        display: none;
    }
    .layui-laydate-content> table>thead{
        display: none;
    }
    .laydate-day-prev{
        display: none;
    }
    .laydate-day-next{
        display: none;
    }
</style>
<form class="layui-form p-4">
    <h3 class="pb-3">功能菜单/节点</h3>
    <table class="layui-table layui-table-form">
        <tr>
            <td class="layui-td-gray-2">供应商名称<font>*</font>
            </td>
            <td>
                <input type="text" name="name" value="{$detail.name|default=''}" lay-verify="required" autocomplete="off" placeholder="请输入名称"
                       lay-reqText="请输入名称" class="layui-input">
            </td>
<!--            <td class="layui-td-gray">供应商名称<font>*</font>-->
<!--            </td>-->
<!--            <td>-->
<!--                <input type="text" name="fdName" value="{$detail.fdName|default=''}"   lay-verify="required" autocomplete="off" placeholder="请输入"-->
<!--                       lay-reqText="请输入" class="layui-input">-->
<!--            </td>-->
            <td class="layui-td-gray-2">银行卡号
            </td>
            <td>
                <input type="text" name="bankCard" value="{$detail.bankCard|default=''}"  autocomplete="off" placeholder="请输入"
                       lay-reqText="请输入" class="layui-input">
            </td>
        </tr>

        <tr>
            <td class="layui-td-gray-2">纳税编码
            </td>
            <td>
                <input type="text" name="code" value="{$detail.code|default=''}"  autocomplete="off" placeholder="请输入"
                       lay-reqText="请输入" class="layui-input">
            </td>
            <td class="layui-td-gray">注册地址
            </td>
            <td>
                <input type="text"  name="registAdd" value="{$detail.registAdd|default=''}"   autocomplete="off" placeholder="请输入"
                       lay-reqText="请输入" class="layui-input">
            </td>
        </tr>
        <tr>


            <td class="layui-td-gray-2">注册电话<font>*</font>
            </td>
            <td>
                <input type="text" name="phoneNum" value="{$detail.phoneNum|default=''}" lay-verify="phone"  autocomplete="off" placeholder="请输入"
                       lay-reqText="请输入" class="layui-input">
            </td>
            <td class="layui-td-gray-2">开户行
            </td>
            <td>
                <input type="text" name="bank" value="{$detail.bank|default=''}"   autocomplete="off" placeholder="请输入"
                       lay-reqText="请输入" class="layui-input">
            </td>
        </tr>
<!--        <tr>-->

<!--            <td class="layui-td-gray">银行账户-->
<!--            </td>-->
<!--            <td>-->
<!--                <input type="text"  name="bankName" value="{$detail.bankName|default=''}"  autocomplete="off" placeholder="请输入"-->
<!--                       lay-reqText="请输入" class="layui-input">-->
<!--            </td>-->

<!--            <td class="layui-td-gray-2">银行行号-->
<!--            </td>-->
<!--            <td>-->
<!--                <input type="text" name="bankNum" value="{$detail.bankNum|default=''}"  autocomplete="off" placeholder="请输入"-->
<!--                       lay-reqText="请输入" class="layui-input">-->
<!--            </td>-->
<!--        </tr>-->
        <tr>

<!--            <td class="layui-td-gray">销售员-->
<!--            </td>-->
<!--            <td>-->
<!--                <select name="saleIds" xm-select="selectId" lay-search>-->
<!--                    <option value="">请选择</option>-->
<!--                </select>-->
<!--            </td>-->
            <td class="layui-td-gray-2">备注
            </td>
            <td>
                <input type="text" name="remark" value="{$detail.remark|default=''}"  autocomplete="off" placeholder="请输入"
                       lay-reqText="请输入" class="layui-input">
            </td>
        </tr>
    </table>
    <div class="py-3">
        <input type="hidden" name="id" value="{$id}">
        <button class="layui-btn layui-btn-normal" lay-submit="" lay-filter="webform">保存</button>
        <button type="reset" class="layui-btn layui-btn-primary">重置</button>
    </div>
</form>
{/block}
<!-- /主体 -->

<!-- 脚本 -->
{block name="script"}
<script type="text/javascript">
    formSelects.render('selectId');
</script>
<script>
    const moduleInit = ['tool'];
    function gouguInit() {
        var form = layui.form,tool=layui.tool,level=0,laydate = layui.laydate;
        //监听提交
        form.on('submit(webform)', function (data) {
            let callback = function (e) {
                layer.msg(e.msg);
                if (e.code == 0) {
                    setTimeout(function(){
                        parent.parent.location.reload();
                    },1000);
                }
            }
            tool.post("{:url('add')}", data.field, callback);
            return false;
        });
        laydate.render({
            elem: '#gz_day' ,// 指定元素
            type:'date',
            format:'d'
        });
    }
</script>
{/block}
<!-- /脚本 -->